<?php

declare(strict_types=1);

namespace Modules\Grade\Models;

use Catch\Traits\DB\BaseOperate;
use Catch\Traits\DB\ScopeTrait;
use Catch\Traits\DB\Trans;
use Illuminate\Database\Eloquent\Model;

/**
 * @property $id
 * @property $name
 * @property $creator_id
 * @property $created_at
 * @property $updated_at
*/
class Grade extends Model
{
    use BaseOperate, Trans, ScopeTrait;

    protected $table = 'grade';

    const CREATED_AT = 'created_at'; // 创建时间
    const UPDATED_AT = 'updated_at'; // 更新时间

    public $timestamps = true;
    public $dateFormat = "U";

    protected $fillable = [ 'name', 'creator_id', 'created_at', 'updated_at', 'status'];

//    /**
//     * @var array
//     */
////    protected array $fields = ['id','name','created_at','updated_at'];
//
//    /**
//     * @var array
//     */
////    protected array $form = ['name'];

    /**
     * @var array
     */
    public array $searchable = [

    ];


}
